#ifndef CCOMPILER_H
#define CCOMPILER_H

#include <string>
#include "GrammarAnalyzer.h"
#include "TemporaryCodeGenerator.h"
#include "SymbolTable.h"


class CCompiler {
	//语法分析器：
	GrammarAnalyzer ga;
	//中间代码生成器：
	TemporaryCodeGenerator tcg;
	//符号表：
	SymbolTable st;

public:
	CCompiler(const std::string &srcFileName, 
			const std::string &destFileName);
	int compile(void);
};
		



#endif
